package com.fa4j.demo.book.model;


import com.fa4j.common.base.model.AbstractCmd;
import com.fa4j.common.base.model.CommonState;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "示例书创建参数")
public class BookCreateCmd extends AbstractCmd {

    @NotBlank
    @Size(max = 64)
    @Schema(description = "书名")
    private String name;

    @NotNull
    @Schema(description = "状态")
    private CommonState state;

    @Schema(description = "图片ID")
    private Long imgId;

    @Size(max = 64)
    @Schema(description = "作者")
    private String author;


}
